﻿<!DOCTYPE html>
<html>
<head>
    <title>收款卡管理</title>
    <script src="/js/header.js"></script>
    <link href="/lib/jquery/jquery-ui.min.css" rel="stylesheet" />
    <script src="/lib/jquery/jquery-ui.min.js"></script>
    <link href="/lib/easyui/default/easyui.css" rel="stylesheet" />
    <script type="text/javascript" src="/lib/easyui/jquery.easyui.min.js"></script>
</head>
<body>
    <div class="data-wrap case" id="container">
        <div class="data-tool clearfix">
            <div class="pull-left form-inline ">
            </div>
            <div class="pull-right">
                <form class="form-inline" id="formSearch">
                    <div class="input-group input-group-sm">
                        <div class="input-sm"><input name="autoRefresh" type="checkbox" title="10秒自动刷新" /><label id="time" class="wd125 gettext">10秒自动刷新</label></div>
                    </div>
                    <div class="input-group input-group-sm">
                        <label class="input-group-addon m5_l gettext">公司名称：</label>
                        <input class="form-control wd125" name="companyName" type="text" autocomplete="off" />
                    </div>

                    <div class="input-group input-group-sm">
                        <label class="input-group-addon m5_l gettext">银行名称：</label>
                        <input class="form-control wd125" name="bankName" type="text" autocomplete="off"/>
                    </div>

                    <div class="input-group input-group-sm">
                        <label class="input-group-addon m5_l gettext">银行卡号：</label>
                        <input class="form-control wd125" name="cardNumber" type="text" autocomplete="off"/>
                    </div>

                    <div class="input-group input-group-sm">
                        <label class="input-group-addon m5_l gettext">用户名：</label>
                        <input class="form-control wd125" name="cardName" type="text" autocomplete="off"/>
                    </div>

                    <div class="input-group input-group-sm">
                        <label class="input-group-addon m5_l gettext">启用状态：</label>
                        <select class="form-control gettext" name="enableStatus">
                            <option value="">请选择</option>
                            <option value="1">启用</option>
                            <option value="2">禁用</option>
                        </select>
                    </div>
                    <div class="input-group input-group-sm">
                        <label class="input-group-addon m5_l gettext">更新时间：</label>
                        <select class="form-control gettext" name="lastUpdateDateSortType">
                            <option value="">请选择</option>
                            <option value="2" selected>不正常</option>
                            <option value="1">正常</option>
                        </select>
                    </div>
                    <button type="button" class="btn btn-default btn-sm active gettext" id="btnSearch">搜索</button>
                </form>
            </div>
        </div>
        <div class="data-easyui data-scroll">
            <div class="data-view">
                <div class="data-div-view table-responsive">
                    <table class="table" id="receiptcard"></table>
                </div>
            </div>
        </div>

    </div>
    <script src="/js/page/receiptcard.js?v=201905091032"></script>
    <script type="text/javascript">
        var wait = 10;
        var autoRefresh = $("input[name='autoRefresh']");
        var pageSize = 50;

        $(function () {
            FlashPay.UI.DataAutoHeight();
            doSearch();
            $("body").keydown(function (event) {
                if (event.keyCode == "13") {
                    doSearch();
                }
            });
            $("#btnSearch").click(function () {
                FlashPay.UI.DoSearch();
            });

            $(autoRefresh).change(function () {
                time();
            });

            FlashPay.Util.Language();
        });

        //倒时计
        function time() {
            var language = FlashPay.Util.Language();
            var obj = document.getElementById("time");
            var isauto = $(autoRefresh).is(':checked');
            if (!isauto) {
                if (!FlashPay.Util.isNullOrEmptySpance(language) && language == "en") {
                    obj.innerText = "10 Second Refresh";
                } else {
                    obj.innerText = "10 秒自动刷新";
                }
                return false;
            }

            if (wait == 0) {
                if (!FlashPay.Util.isNullOrEmptySpance(language) && language == "en") {
                    obj.innerText = "10 Second Refresh";
                } else {
                    obj.innerText = "10秒自动刷新";
                }

                wait = 10;

                if (isauto) {
                    setTimeout(function () { time(); }, 1000);
                }

                FlashPay.UI.DoSearch();
            } else {
                if (!FlashPay.Util.isNullOrEmptySpance(language) && language == "en") {
                    obj.innerText = wait + " Second Refresh";
                } else {
                    obj.innerText = wait + "秒自动刷新";
                }
                wait--;
                setTimeout(function () { time(); }, 1000);
            }
        }
    </script>
</body>
</html>